PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-04-04 10:19:57.256937+00:00 (UTC)
In US/Central Time, this is 2024-04-04 05:19:57.256937-05:00
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

# Generating a random time series data
dates = pd.date_range(start="2021-01-01", end="2021-12-31", freq='D')
data = np.random.randn(len(dates)).cumsum()

# Creating the plot
plt.figure(figsize=(10, 6))
plt.plot(dates, data, label='Random Time Series', color='blue')
plt.title('Random Time Series Plot')
plt.xlabel('Date')
plt.ylabel('Value')
plt.legend()
plt.grid(True)
plt.xticks(rotation=45)
plt.tight_layout()

# Display the plot
plt.show()
print('We are just generating a random time serie here.')
../../_images/9280b8a06f3161bbcc7e29ceae564bf85105b4e8287102ccc476a75fdc0e1897.png
We are just generating a random time serie here.
../../_images/149c8fbd671fc72a636f0d1b1b071e31c3512aad20b0fe011416837ede4e1e78.png
../../_images/6b1c3513f08e2647bcd8e9417e754fbbd87a2cafa9e76b725a7ff2e5d3f1bb45.png